package cn.net.yugu.doraemon.redis;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @description:
 * @author: wanghongli
 * @create: 2022-07-18 01:58:00
 */
@Configuration
public class RedisClientAutoConfiguration {

    @Bean
    public RedisClientWrapper redisClientWrapper(RedisTemplate<String, String> redisTemplate, RedisConnectionFactory redisConnectionFactory) {
        return new RedisClientWrapper(redisTemplate, redisConnectionFactory);
    }
}
